projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81cdc87
)
window: Hide titlebox when undecorated
author
Timm Bäder
<mail@baedert.org>
Tue, 9 May 2017 06:32:06 +0000
(08:32 +0200)
committer
Carlos Garnacho
<carlosg@gnome.org>
Thu, 25 May 2017 14:25:59 +0000
(16:25 +0200)
We don't draw or size-allocate the titlebar when the window is
fullscreen or undecorated, so reflect this by setting it to
!child_visible. This can happen when changing the value of the decorated
property while the window is shown.
gtk/gtkwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index c9ca7faef6b47a55f6c98b8853fd6ccae02e496f..9f6676c8055096bfef3ae2c168af7fa96b61a5f8 100644
(file)
--- a/
gtk/gtkwindow.c
+++ b/
gtk/gtkwindow.c
@@
-5806,7
+5806,8
@@
update_csd_visibility (GtkWindow *window)
if (priv->title_box == NULL)
return FALSE;
- visible = !priv->fullscreen;
+ visible = !priv->fullscreen &&
+ priv->decorated;
gtk_widget_set_child_visible (priv->title_box, visible);